from malwaredomains import *
import subprocess
import traceback

# Get a list of malware domains
domains = scrape_malware_domains()

for url in domains:
	try:
		print "[*] " + url
		p = subprocess.Popen("python mobile.py " + url, stdout=subprocess.PIPE, shell=True).wait()
		print "[*] DONE"
	except:
		print "[*] There was an error running on this domain: " + url
		traceback.print_exc(file=sys.stdout)
